package com.ys.entity.business;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="[kjecp_amazonproduct].[dbo].TP_AmazonShopProductReport", catalog="Id")
public class TpAmazonShopProductReport extends BaseEntity<TpAmazonShopProductReport> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="ShopProductGuid", nameJava="shopProductGuid", typeDataBase="varchar")
	private String shopProductGuid;
	@YsField(nameDataBase="ShopProductId", nameJava="shopProductId", typeDataBase="varchar")
	private String shopProductId;
	@YsField(nameDataBase="ListingPrice", nameJava="listingPrice", typeDataBase="decimal")
	private BigDecimal listingPrice;
	@YsField(nameDataBase="SessionsNum", nameJava="sessionsNum", typeDataBase="int")
	private Integer sessionsNum;
	@YsField(nameDataBase="RecommendPrice", nameJava="recommendPrice", typeDataBase="decimal")
	private BigDecimal recommendPrice;
	@YsField(nameDataBase="CommoditySession", nameJava="commoditySession", typeDataBase="decimal")
	private BigDecimal commoditySession;
	@YsField(nameDataBase="SalesRank", nameJava="salesRank", typeDataBase="int")
	private Integer salesRank;
	@YsField(nameDataBase="DataDate", nameJava="dataDate", typeDataBase="char")
	private String dataDate;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TpAmazonShopProductReport setId(Long id) {
		this.id = id;
		return this;
	}
	public String getShopProductGuid() {
		return shopProductGuid;
	}
	public TpAmazonShopProductReport setShopProductGuid(String shopProductGuid) {
		this.shopProductGuid = shopProductGuid;
		return this;
	}
	public String getShopProductId() {
		return shopProductId;
	}
	public TpAmazonShopProductReport setShopProductId(String shopProductId) {
		this.shopProductId = shopProductId;
		return this;
	}
	public BigDecimal getListingPrice() {
		return listingPrice;
	}
	public TpAmazonShopProductReport setListingPrice(BigDecimal listingPrice) {
		this.listingPrice = listingPrice;
		return this;
	}
	public Integer getSessionsNum() {
		return sessionsNum;
	}
	public TpAmazonShopProductReport setSessionsNum(Integer sessionsNum) {
		this.sessionsNum = sessionsNum;
		return this;
	}
	public BigDecimal getRecommendPrice() {
		return recommendPrice;
	}
	public TpAmazonShopProductReport setRecommendPrice(BigDecimal recommendPrice) {
		this.recommendPrice = recommendPrice;
		return this;
	}
	public BigDecimal getCommoditySession() {
		return commoditySession;
	}
	public TpAmazonShopProductReport setCommoditySession(BigDecimal commoditySession) {
		this.commoditySession = commoditySession;
		return this;
	}
	public Integer getSalesRank() {
		return salesRank;
	}
	public TpAmazonShopProductReport setSalesRank(Integer salesRank) {
		this.salesRank = salesRank;
		return this;
	}
	public String getDataDate() {
		return dataDate;
	}
	public TpAmazonShopProductReport setDataDate(String dataDate) {
		this.dataDate = dataDate;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TpAmazonShopProductReport setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TpAmazonShopProductReport setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TpAmazonShopProductReport setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TpAmazonShopProductReport tpAmazonShopProductReport(
		String shopProductGuid,
		String shopProductId,
		BigDecimal listingPrice,
		Integer sessionsNum,
		BigDecimal recommendPrice,
		BigDecimal commoditySession,
		Integer salesRank,
		String dataDate,
		Integer status
			) {
		TpAmazonShopProductReport entity = new TpAmazonShopProductReport();
		entity.setShopProductGuid(shopProductGuid);
		entity.setShopProductId(shopProductId);
		entity.setListingPrice(listingPrice);
		entity.setSessionsNum(sessionsNum);
		entity.setRecommendPrice(recommendPrice);
		entity.setCommoditySession(commoditySession);
		entity.setSalesRank(salesRank);
		entity.setDataDate(dataDate);
		entity.setStatus(status);
		return entity;
	}
}